//
//  StockNewsDetailController.h
//  Stock
//
//  Created by blacksun on 11-6-28.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <iAd/iAd.h>
#import "StockNews.h"
#import "StockNewsContent.h"
#import "StockNewsService.h"
@class BaseStockChildListController;

#define kStockNewsDetailCellTextTag     4312
#define kStockNewsDetailCellImageTag    4314

#define kStockNewsContentTypeText       @"text"
#define kStockNewsContentTypeImage      @"image"
#define kStockNewsContentTypePDF        @"PDF"

#define kStockNewsContentCellFontSize   16.0

@interface StockNewsDetailController : UIViewController<UITableViewDataSource,UITableViewDelegate,ServiceDelegate> {
    UIActivityIndicatorView *activeView;
    NSArray *contents;
    UITableView *tableView;
    StockNews *stockNews;
    UILabel *titleLabel;
    UILabel *sourceLabel;
    UILabel *pubDateLabel;
    StockNewsService *stockNewsService;
    UIView *headerView;
    BaseStockChildListController *parent;
}
@property(nonatomic, retain) IBOutlet UITableView *tableView;
@property(nonatomic, retain) IBOutlet UIActivityIndicatorView *activeView;
@property(nonatomic, retain) IBOutlet UILabel *titleLabel;
@property(nonatomic, retain) IBOutlet UILabel *sourceLabel;
@property(nonatomic, retain) IBOutlet UILabel *pubDateLabel;
@property(nonatomic, retain) NSArray *contents;
@property(nonatomic, retain) StockNews *stockNews;
@property(nonatomic, retain) StockNewsService *stockNewsService;
@property(nonatomic, retain) IBOutlet UIView *headerView;
@property(nonatomic, assign) BaseStockChildListController *parent;
@end
